package com.mark.media.kafka;

import com.mark.common.kafka.KafkaSender;
import com.mark.common.kafka.messages.SubmitArticleAuthMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Description :  管理消息发送
 * @Author :  Markburt
 * @CreateDate :  2020/3/8$ 下午 01:31$
 * @UpdateUser :  Markburt
 * @UpdateDate :  2020/3/8$ 下午 01:31$
 * @UpdateRemark :  Project Build
 * @Version :  1.0
 */
@Component
public class AdminMessageSender {

    @Autowired
    private KafkaSender kafkaSender;

    /***
     * 发送消息
     * @param message
     */
    public void sendMessage(SubmitArticleAuthMessage message){
        kafkaSender.sendSubmitArticleAuthMessage(message);
    }
}
